<?php
$admin_pre_folder = "../../";

include '../../class.php';

$user->get_user_perm("users");

$id = (int)$_GET['id'];

if  ($sql->mysql_update("users", array("user_active"=>0,"user_ban"=>1),"`user_id` = ".$id))
{
	$_SESSION['message']['highlight'][] = "A felhasználó sikeresen bannolva lett!";
}

header("Location: ../../index.php?users.list");
?>